package com.oceansoft.mobile.biz.api.service;

//import org.codehaus.xfire.client.XFireProxyFactory;
//import org.codehaus.xfire.service.Service;
//import org.codehaus.xfire.service.binding.ObjectServiceFactory;

import java.rmi.RemoteException;

/**
 * Created by lenovo on 2017/4/19.
 */
public class SendMessage extends Thread{
    public static final String URL_ADDRESS = "http://172.16.1.236:8084/smsplat/services/smsService";
    public static final String message="您在苏州公安微警务中申请办理的户口业务已成功受理，公安机关将对您提交的材料进行审核并反馈审核结果。";

    String tel;
    public SendMessage(String tel) {
        this.tel = tel;
    }

    public void run() {
//        System.out.println("开始调用");
//        Service serviceModel = new ObjectServiceFactory().create(ISendMessage.class);
//        ISendMessage service = null;
//        int success = 0;
//        try {
//            service = (ISendMessage) new XFireProxyFactory().create(
//                    serviceModel, URL_ADDRESS);
//            success = service.sendMessage("", "267", "", "0",
//                    tel,message);//参数规范请参照接口文档
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        System.out.println("调用结果为：" + success);
    }

}
